import $http from "../assets/js/http";
// 宿舍楼查询
export async function building_select({
  AR_number,
  SSL_number,
  SSL_admin,
  page
}) {
  return $http.post("Building/Building/building_select", {
    AR_number,
    SSL_number,
    SSL_admin,
    page
  });
}

//宿舍楼信息修改
export async function dorm_update({
  AR_name,
  AR_number,
  SSL_name,
  SSL_number,
  SSL_location,
  SSL_floor,
  SSL_cname,
  SSL_cdate,
  SSL_remarks,
  SSL_admin,
  SSL_quantity
}) {
  return $http.post("Building/Building/dorm_update", {
    AR_name,
    AR_number,
    SSL_name,
    SSL_number,
    SSL_location,
    SSL_floor,
    SSL_cname,
    SSL_cdate,
    SSL_remarks,
    SSL_admin,
    SSL_quantity
  });
}
//新增
export async function dorm_insert({
  AR_number,
  SSL_name,
  SS_floornumber,
  SSL_cname,
  SSL_remarks,
  SSL_admin,
  SSL_quantity,
  SSL_location
}) {
  return $http.post("Building/Building/dorm_insert", {
    AR_number,
    SSL_name,
    SS_floornumber,
    SSL_cname,
    SSL_remarks,
    SSL_admin,
    SSL_quantity,
    SSL_location
  });
}

// 宿舍楼删除
export async function dorm_delete(AR_number, SSL_number) {
  return $http.post("Building/Building/dorm_delete", {
    AR_number,
    SSL_number
  });
}
